﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPagePrivate.master" AutoEventWireup="true" CodeFile="TestimonialList.aspx.cs" Inherits="Pages_Admin_TestimonialList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Testimonial List</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>

    <div style="margin-bottom:10px;"><a href="/Pages/Admin/TestimonialChange.aspx">Add Testimonial</a></div>

    <div>
        <asp:Repeater ID="rptTestimonialList" runat="server">
            <HeaderTemplate>                    
                <table id="tblOutputMatrixForUpazilla" cellpadding="3" cellspacing="0" class="GridView">                        
                    <tr> 
                        <th>Publish Date</th>                                   
                        <th>Title</th>
                        <th>Image</th>
                        <th style="text-align:center;">Action</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="EvenRowListing">                                
                    <td><%# WebUtil.FormatData(DataBinder.Eval(Container.DataItem, "PublishDate"))%></td>
                    <td><%# WebUtil.FormatData(DataBinder.Eval(Container.DataItem, "Title"))%></td>
                    <td><img class="AdverstisementImage" src='<%# AppConstants.TESTIMONIAL_FILES %>/<%# DataBinder.Eval(Container.DataItem, "ThumbImage")%>' alt="" title="" /></td>
                    <td style="text-align:center;"><a href='/Pages/Admin/TestimonialChange.aspx?<%# AppConstants.QueryString.ID %>=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>Edit</a></td>                        
                </tr>
            </ItemTemplate> 
            <AlternatingItemTemplate>
                <tr class="OddRowListing">
                    <td><%# WebUtil.FormatData(DataBinder.Eval(Container.DataItem, "PublishDate"))%></td>
                    <td><%# WebUtil.FormatData(DataBinder.Eval(Container.DataItem, "Title"))%></td>
                    <td><img class="AdverstisementImage" src='<%# AppConstants.TESTIMONIAL_FILES %>/<%# DataBinder.Eval(Container.DataItem, "ThumbImage")%>' alt="" title="" /></td>
                    <td style="text-align:center;"><a href='/Pages/Admin/TestimonialChange.aspx?<%# AppConstants.QueryString.ID %>=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>Edit</a></td>                        
                </tr>
            </AlternatingItemTemplate>               
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>                 
        <div id="divOutputMatrixForUpazillaMessage" runat="server" enableviewstate="false" visible="false"></div>
    </div>
</asp:Content>


